package com.yuanhua.core.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class MsgReqBO {
    private String mid;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("发送人")
    private Long senderId;

    @ApiModelProperty("接受人")
    private Long recverId;

    @ApiModelProperty("消息类型")
    private Integer msgType;

    @ApiModelProperty("消息是否被接受")
    private Integer received;

    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;
}
